package com.example.home7.server;

import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import com.example.home7.R;
import com.example.home7.server.MuSicAid;

public class MusicLuaLuaLua extends Service {
    public MusicLuaLuaLua() {
    }
    private MuSicAid aid = null;
    @Override
    public IBinder onBind(Intent intent) {
        // TODO: Return the communication channel to the service.
        throw new UnsupportedOperationException("Not yet implemented");
    }

    @Override
    public void onCreate() {
        super.onCreate();
        aid = new MuSicAid(this);
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        aid.begin();
        return super.onStartCommand(intent, flags, startId);
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        aid.destroy();
        aid = null;
    }
}